\(\int \frac {(b x+c x^2)^p}{x} \, dx\) [128]

   Optimal result
   Rubi [A] (verified)
   Mathematica [A] (verified)
   Maple [F]
   Fricas [F]
   Sympy [F]
   Maxima [F]
   Giac [F]
   Mupad [F(-1)]

Optimal result

Integrand size = 15, antiderivative size = 42 \[ \int \frac {\left (b x+c x^2\right )^p}{x} \, dx=\frac {\left (1+\frac {c x}{b}\right )^{-p} \left (b x+c x^2\right )^p \operatorname {Hypergeometric2F1}\left (-p,p,1+p,-\frac {c x}{b}\right )}{p} \]

[Out]

(c*x^2+b*x)^p*hypergeom([p, -p],[p+1],-c*x/b)/p/((1+c*x/b)^p)

Rubi [A] (verified)

Time = 0.01 (sec) , antiderivative size = 42, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 3, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.200, Rules used = {688, 68, 66} \[ \int \frac {\left (b x+c x^2\right )^p}{x} \, dx=\frac {\left (\frac {c x}{b}+1\right )^{-p} \left (b x+c x^2\right )^p \operatorname {Hypergeometric2F1}\left (-p,p,p+1,-\frac {c x}{b}\right )}{p} \]

[In]

Int[(b*x + c*x^2)^p/x,x]

[Out]

((b*x + c*x^2)^p*Hypergeometric2F1[-p, p, 1 + p, -((c*x)/b)])/(p*(1 + (c*x)/b)^p)

Rule 66

Int[((b_.)*(x_))^(m_)*((c_) + (d_.)*(x_))^(n_), x_Symbol] :> Simp[c^n*((b*x)^(m + 1)/(b*(m + 1)))*Hypergeometr
ic2F1[-n, m + 1, m + 2, (-d)*(x/c)], x] /; FreeQ[{b, c, d, m, n}, x] &&  !IntegerQ[m] && (IntegerQ[n] || (GtQ[
c, 0] &&  !(EqQ[n, -2^(-1)] && EqQ[c^2 - d^2, 0] && GtQ[-d/(b*c), 0])))

Rule 68

Int[((b_.)*(x_))^(m_)*((c_) + (d_.)*(x_))^(n_), x_Symbol] :> Dist[c^IntPart[n]*((c + d*x)^FracPart[n]/(1 + d*(
x/c))^FracPart[n]), Int[(b*x)^m*(1 + d*(x/c))^n, x], x] /; FreeQ[{b, c, d, m, n}, x] &&  !IntegerQ[m] &&  !Int
egerQ[n] &&  !GtQ[c, 0] &&  !GtQ[-d/(b*c), 0] && ((RationalQ[m] &&  !(EqQ[n, -2^(-1)] && EqQ[c^2 - d^2, 0])) |
|  !RationalQ[n])

Rule 688

Int[((e_.)*(x_))^(m_)*((b_.)*(x_) + (c_.)*(x_)^2)^(p_), x_Symbol] :> Dist[(e*x)^m*((b*x + c*x^2)^p/(x^(m + p)*
(b + c*x)^p)), Int[x^(m + p)*(b + c*x)^p, x], x] /; FreeQ[{b, c, e, m}, x] &&  !IntegerQ[p]

Rubi steps \begin{align*} \text {integral}& = \left (x^{-p} (b+c x)^{-p} \left (b x+c x^2\right )^p\right ) \int x^{-1+p} (b+c x)^p \, dx \\ & = \left (x^{-p} \left (1+\frac {c x}{b}\right )^{-p} \left (b x+c x^2\right )^p\right ) \int x^{-1+p} \left (1+\frac {c x}{b}\right )^p \, dx \\ & = \frac {\left (1+\frac {c x}{b}\right )^{-p} \left (b x+c x^2\right )^p \, _2F_1\left (-p,p;1+p;-\frac {c x}{b}\right )}{p} \\ \end{align*}

Mathematica [A] (verified)

Time = 0.03 (sec) , antiderivative size = 40, normalized size of antiderivative = 0.95 \[ \int \frac {\left (b x+c x^2\right )^p}{x} \, dx=\frac {(x (b+c x))^p \left (1+\frac {c x}{b}\right )^{-p} \operatorname {Hypergeometric2F1}\left (-p,p,1+p,-\frac {c x}{b}\right )}{p} \]

[In]

Integrate[(b*x + c*x^2)^p/x,x]

[Out]

((x*(b + c*x))^p*Hypergeometric2F1[-p, p, 1 + p, -((c*x)/b)])/(p*(1 + (c*x)/b)^p)

Maple [F]

\[\int \frac {\left (c \,x^{2}+b x \right )^{p}}{x}d x\]

[In]

int((c*x^2+b*x)^p/x,x)

[Out]

int((c*x^2+b*x)^p/x,x)

Fricas [F]

\[ \int \frac {\left (b x+c x^2\right )^p}{x} \, dx=\int { \frac {{\left (c x^{2} + b x\right )}^{p}}{x} \,d x } \]

[In]

integrate((c*x^2+b*x)^p/x,x, algorithm="fricas")

[Out]

integral((c*x^2 + b*x)^p/x, x)

Sympy [F]

\[ \int \frac {\left (b x+c x^2\right )^p}{x} \, dx=\int \frac {\left (x \left (b + c x\right )\right )^{p}}{x}\, dx \]

[In]

integrate((c*x**2+b*x)**p/x,x)

[Out]

Integral((x*(b + c*x))**p/x, x)

Maxima [F]

\[ \int \frac {\left (b x+c x^2\right )^p}{x} \, dx=\int { \frac {{\left (c x^{2} + b x\right )}^{p}}{x} \,d x } \]

[In]

integrate((c*x^2+b*x)^p/x,x, algorithm="maxima")

[Out]

integrate((c*x^2 + b*x)^p/x, x)

Giac [F]

\[ \int \frac {\left (b x+c x^2\right )^p}{x} \, dx=\int { \frac {{\left (c x^{2} + b x\right )}^{p}}{x} \,d x } \]

[In]

integrate((c*x^2+b*x)^p/x,x, algorithm="giac")

[Out]

integrate((c*x^2 + b*x)^p/x, x)

Mupad [F(-1)]

Timed out. \[ \int \frac {\left (b x+c x^2\right )^p}{x} \, dx=\int \frac {{\left (c\,x^2+b\,x\right )}^p}{x} \,d x \]

[In]

int((b*x + c*x^2)^p/x,x)

[Out]

int((b*x + c*x^2)^p/x, x)